package com.dailygreetings.dailygreetings.controller;

import com.dailygreetings.dailygreetings.service.DailyGreetingService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: daily-greetings
 * @BelongsPackage: com.dailygreetings.dailygreetings.controller
 * @Author: shanzhengfei
 * @CreateTime: 2024-11-21  17:19
 * @Description: 测试controller
 * @Version: 1.0
 */
@RestController
@AllArgsConstructor
public class HelloController {

    private DailyGreetingService service;

    @GetMapping("/hello")
    public String hello() {
        service.sendDailyGreeting();
        return "";
    }
}
